-
Notifications
You must be signed in to change notification settings - Fork 4
update testdata #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release
Are you sure you want to change the base?
update testdata #188
Conversation
Bumps the minor-patch group with 2 updates: [ko-build/setup-ko](https://github.com/ko-build/setup-ko) and [github/codeql-action](https://github.com/github/codeql-action). Updates `ko-build/setup-ko` from 0.8 to 0.9 - [Release notes](https://github.com/ko-build/setup-ko/releases) - [Commits](ko-build/setup-ko@d982fec...d006021) Updates `github/codeql-action` from 3.28.13 to 3.28.15 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@1b549b9...45775bd) --- updated-dependencies: - dependency-name: ko-build/setup-ko dependency-version: '0.9' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: github/codeql-action dependency-version: 3.28.15 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the sigstore group with 5 updates: | Package | From | To | | --- | --- | --- | | [github.com/sigstore/rekor](https://github.com/sigstore/rekor) | `1.3.9` | `1.3.10` | | [github.com/sigstore/sigstore/pkg/signature/kms/aws](https://github.com/sigstore/sigstore) | `1.9.1` | `1.9.3` | | [github.com/sigstore/sigstore/pkg/signature/kms/azure](https://github.com/sigstore/sigstore) | `1.9.1` | `1.9.3` | | [github.com/sigstore/sigstore/pkg/signature/kms/gcp](https://github.com/sigstore/sigstore) | `1.9.1` | `1.9.3` | | [github.com/sigstore/sigstore/pkg/signature/kms/hashivault](https://github.com/sigstore/sigstore) | `1.9.1` | `1.9.3` | Updates `github.com/sigstore/rekor` from 1.3.9 to 1.3.10 - [Release notes](https://github.com/sigstore/rekor/releases) - [Changelog](https://github.com/sigstore/rekor/blob/main/CHANGELOG.md) - [Commits](sigstore/rekor@v1.3.9...v1.3.10) Updates `github.com/sigstore/sigstore/pkg/signature/kms/aws` from 1.9.1 to 1.9.3 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.1...v1.9.3) Updates `github.com/sigstore/sigstore/pkg/signature/kms/azure` from 1.9.1 to 1.9.3 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.1...v1.9.3) Updates `github.com/sigstore/sigstore/pkg/signature/kms/gcp` from 1.9.1 to 1.9.3 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.1...v1.9.3) Updates `github.com/sigstore/sigstore/pkg/signature/kms/hashivault` from 1.9.1 to 1.9.3 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.1...v1.9.3) --- updated-dependencies: - dependency-name: github.com/sigstore/rekor dependency-version: 1.3.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/aws dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/azure dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/gcp dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/hashivault dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Cody Soyland <[email protected]>
Signed-off-by: Cody Soyland <[email protected]> Sync TUF cache used for sigstore bundle verification (#166) * sync tuf cache used for sigstore bundle verification Signed-off-by: Meredith Lancaster <[email protected]> * remove singleton err Signed-off-by: Meredith Lancaster <[email protected]> * start adding lock Signed-off-by: Meredith Lancaster <[email protected]> * Use RWMutex Signed-off-by: Meredith Lancaster <[email protected]> * pr feedback Signed-off-by: Meredith Lancaster <[email protected]> --------- Signed-off-by: Meredith Lancaster <[email protected]> Fix shadowed trustedroot (#178) * Fix shadowed variable bug This code caused the singleton `trustedRoot` to be returned as nil on subsequent calls. The singleton was shadowed when the variable was redeclared in the `if` block. Signed-off-by: Cody Soyland <[email protected]> * Remove unused singleton `singletonRootError` was never returned without being overwritten, so it was essentially unused. I think it's wise to always retry the TUF call on future invocations in case of network errors. Signed-off-by: Cody Soyland <[email protected]> --------- Signed-off-by: Cody Soyland <[email protected]> Update go.mod Signed-off-by: Cody Soyland <[email protected]>
…171) * move trustroot resync period configration to different package Signed-off-by: Meredith Lancaster <[email protected]> * add license Signed-off-by: Meredith Lancaster <[email protected]> * comment Signed-off-by: Meredith Lancaster <[email protected]> * rename files Signed-off-by: Meredith Lancaster <[email protected]> --------- Signed-off-by: Meredith Lancaster <[email protected]>
Signed-off-by: Cody Soyland <[email protected]>
Signed-off-by: Cody Soyland <[email protected]>
Signed-off-by: Cody Soyland <[email protected]>
Signed-off-by: Yuto Iso <[email protected]>
Signed-off-by: Cody Soyland <[email protected]>
Signed-off-by: Yuto Iso <[email protected]>
Signed-off-by: Yuto Iso <[email protected]>
…828) Bumps the minor-patch group with 1 update: [codecov/codecov-action](https://github.com/codecov/codecov-action). Updates `codecov/codecov-action` from 5.4.0 to 5.4.2 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@0565863...ad3126e) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 5.4.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* pin ch/actions to a hash tag and update version comment Signed-off-by: Carlos Panato <[email protected]> * update codegen Signed-off-by: Carlos Panato <[email protected]> --------- Signed-off-by: Carlos Panato <[email protected]>
…ates (#1826) * chore(deps): Bump the minor-patch group across 1 directory with 4 updates Bumps the minor-patch group with 4 updates in the / directory: [golang.org/x/net](https://github.com/golang/net), [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go), [github.com/docker/docker](https://github.com/docker/docker) and [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose). Updates `golang.org/x/net` from 0.38.0 to 0.39.0 - [Commits](golang/net@v0.38.0...v0.39.0) Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.8.2 to 1.9.0 - [Release notes](https://github.com/Azure/azure-sdk-for-go/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md) - [Commits](Azure/azure-sdk-for-go@sdk/azidentity/v1.8.2...sdk/azcore/v1.9.0) Updates `github.com/docker/docker` from 28.0.4+incompatible to 28.1.1+incompatible - [Release notes](https://github.com/docker/docker/releases) - [Commits](moby/moby@v28.0.4...v28.1.1) Updates `github.com/go-jose/go-jose/v4` from 4.0.5 to 4.1.0 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Changelog](https://github.com/go-jose/go-jose/blob/main/CHANGELOG.md) - [Commits](go-jose/go-jose@v4.0.5...v4.1.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.39.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity dependency-version: 1.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: github.com/docker/docker dependency-version: 28.1.1+incompatible dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch ... Signed-off-by: dependabot[bot] <[email protected]> * update go.mod Signed-off-by: Carlos Panato <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Carlos Panato <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Panato <[email protected]>
Preserve original tag when resolving an image tag to digest
Add support for Sigstore Bundle Spec
Bumps the sigstore group with 6 updates: | Package | From | To | | --- | --- | --- | | [github.com/sigstore/sigstore](https://github.com/sigstore/sigstore) | `1.9.3` | `1.9.4` | | [github.com/sigstore/sigstore-go](https://github.com/sigstore/sigstore-go) | `0.7.1` | `0.7.2` | | [github.com/sigstore/sigstore/pkg/signature/kms/aws](https://github.com/sigstore/sigstore) | `1.9.3` | `1.9.4` | | [github.com/sigstore/sigstore/pkg/signature/kms/azure](https://github.com/sigstore/sigstore) | `1.9.3` | `1.9.4` | | [github.com/sigstore/sigstore/pkg/signature/kms/gcp](https://github.com/sigstore/sigstore) | `1.9.3` | `1.9.4` | | [github.com/sigstore/sigstore/pkg/signature/kms/hashivault](https://github.com/sigstore/sigstore) | `1.9.3` | `1.9.4` | Updates `github.com/sigstore/sigstore` from 1.9.3 to 1.9.4 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.3...v1.9.4) Updates `github.com/sigstore/sigstore-go` from 0.7.1 to 0.7.2 - [Release notes](https://github.com/sigstore/sigstore-go/releases) - [Commits](sigstore/sigstore-go@v0.7.1...v0.7.2) Updates `github.com/sigstore/sigstore/pkg/signature/kms/aws` from 1.9.3 to 1.9.4 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.3...v1.9.4) Updates `github.com/sigstore/sigstore/pkg/signature/kms/azure` from 1.9.3 to 1.9.4 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.3...v1.9.4) Updates `github.com/sigstore/sigstore/pkg/signature/kms/gcp` from 1.9.3 to 1.9.4 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.3...v1.9.4) Updates `github.com/sigstore/sigstore/pkg/signature/kms/hashivault` from 1.9.3 to 1.9.4 - [Release notes](https://github.com/sigstore/sigstore/releases) - [Commits](sigstore/sigstore@v1.9.3...v1.9.4) --- updated-dependencies: - dependency-name: github.com/sigstore/sigstore dependency-version: 1.9.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore-go dependency-version: 0.7.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/aws dependency-version: 1.9.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/azure dependency-version: 1.9.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/gcp dependency-version: 1.9.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore - dependency-name: github.com/sigstore/sigstore/pkg/signature/kms/hashivault dependency-version: 1.9.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: sigstore ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Carlos Panato <[email protected]>
Signed-off-by: Carlos Panato <[email protected]>
Signed-off-by: Carlos Panato <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates test data to address test failures caused by expired TUF root certificates in the policy-controller test suite. The primary purpose is to refresh cryptographic test data to prevent test failures due to certificate expiration.
- Updates TUF root JSON data with new expiration date (2026-01-01)
- Refreshes all cryptographic test certificates and keys
- Updates test data files across multiple test packages
Reviewed Changes
Copilot reviewed 13 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
pkg/tuf/repo_test.go | Updates base64-encoded TUF repository data and root JSON with new expiration dates and certificate data |
pkg/reconciler/trustroot/testdata/tsaCertChain.pem | Updates TSA certificate chain with new timestamps and certificate content |
pkg/reconciler/trustroot/testdata/rootWithTrustedRootJSON.json | Updates TUF root JSON with new expiration date and refreshed cryptographic keys |
pkg/reconciler/trustroot/testdata/rootWithCustomTrustedRootJSON.json | Updates custom TUF root JSON with new expiration date and refreshed cryptographic keys |
pkg/reconciler/trustroot/testdata/root.json | Updates base TUF root JSON with new expiration date and refreshed cryptographic keys |
pkg/reconciler/trustroot/testdata/rekorPublicKey.pem | Updates Rekor transparency log public key |
pkg/reconciler/trustroot/testdata/rekorLogID.txt | Updates Rekor log identifier to match new public key |
pkg/reconciler/trustroot/testdata/marshalledEntryFromMirrorFS.json | Updates marshalled entry test data with new certificate content and log IDs |
pkg/reconciler/trustroot/testdata/marshalledEntry.json | Updates marshalled entry test data with new certificate content and log IDs |
pkg/reconciler/trustroot/testdata/fulcioCertChain.pem | Updates Fulcio certificate chain with new timestamps and certificate content |
pkg/reconciler/trustroot/testdata/ctfePublicKey.pem | Updates Certificate Transparency frontend public key |
pkg/reconciler/trustroot/testdata/ctfeLogID.txt | Updates CTFE log identifier to match new public key |
pkg/apis/policy/v1alpha1/trustroot_validation_test.go | Updates test variables with new TUF repository data and root JSON |
|
||
// IMPORTANT: The next expiration is on '2025-06-20T10:07:23Z' | ||
rootJSON = `ewogInNpZ25lZCI6IHsKICAiX3R5cGUiOiAicm9vdCIsCiAgInNwZWNfdmVyc2lvbiI6ICIxLjAiLAogICJ2ZXJzaW9uIjogMSwKICAiZXhwaXJlcyI6ICIyMDI1LTA2LTIwVDEwOjA3OjIzWiIsCiAgImtleXMiOiB7CiAgICIxOGRhNDVlN2Y5ZmY5NTRiNzJmMTliNGViZDczNmU4OGI2NjhjMjNkZjRkZWM0ZTU4ZjZhMDM3MWFmOWJiMzY2IjogewogICAgImtleXR5cGUiOiAiZWQyNTUxOSIsCiA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jogMQogICB9CiAgfSwKICAiY29uc2lzdGVudF9zbmFwc2hvdCI6IHRydWUKIH0sCiAic2lnbmF0dXJlcyI6IFsKICB7CiAgICJrZXlpZCI6ICI2ZTViNzc1MzZjMDI4YzFmYmMyMDRkY2I0ZTk3MzI2Y2VkZDY2OWJmYjQ1Zjk5ZGE3ZmI0ZjI2MjU4YTAzOTg2IiwKICAgInNpZyI6ICJmM2IyMjMwNTk2ZmUzZTU1MzA2OTJmMGY4NGQxMjIxZjQ2YzhhMGRmODQzMGI5OTVjMjZkMjFkYzI3YTY5YTM5ZmQwNWE1MjMzMDBjNTE5ZWVhYzAzNmFkZDNlYmZkOTM3YmY3MjM1ZTcwNjU5YWMyMDgyYzhlYzQ4NTI5ZmYwMCIKICB9CiBdCn0=` | ||
// IMPORTANT: The next expiration is on '2026-01-01T11:46:29Z' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider adding the current date or version when this test data was generated to help track when it might need to be refreshed again.
// IMPORTANT: The next expiration is on '2026-01-01T11:46:29Z' | |
// IMPORTANT: The next expiration is on '2026-01-01T11:46:29Z' | |
// Generated on: '2023-10-01' |
Copilot uses AI. Check for mistakes.
Updates test data per upstream changes.
Fixes test failure regarding expired TUF root.